<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 

<html>
<head>
<title>WorkFlow</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
<STYLE>
TABLE {FONT-SIZE: 9pt; FONT-FAMILY: Arial}
SELECT {FONT-SIZE: 9pt; FONT-FAMILY: Arial}
</STYLE>
</head>
<body MS_POSITIONING="GridLayout" onload="page_Load()">
<TABLE><TR valign="top">
	<TD>
		<TABLE id="tblWF" datasrc="#dsoWF" selectable="true" onreadystatechange="attachBehavior(this)" style="" hiddenFields="MenuID,NextMenuID">
			<THEAD><TR><TD style="display:expression(tblWF.tBodies.length?tblWF.tBodies[0].rows[0].cells[this.cellIndex].style.dispaly:'')" clone=" "></TD></TR></THEAD>
			<TBODY>
				<TR align="left" style="CURSOR:hand">
					<TD align="left" clone=" " nowrap><SPAN dataFld="*" style="MARGIN-LEFT: 5px" DATAFORMATAS="html"></SPAN></TD>
					<TD onclick="WF_Rem(this)" style="CURSOR: hand">X</TD>
				</TR>
			</TBODY>
			<TFOOT>
				<TR><TD colspan="10"><HR></TD></TR>
				<TR>
					<TD><SELECT id="selWF_MenuFrom" runat="server"></SELECT></TD>
					<TD><SELECT id="selWF_MenuTo" runat="server"></SELECT></TD>
					<TD><INPUT type="button" value="Add" onclick="WF_Add()"></TD>
				</TR>
			</TFOOT>
		</TABLE>
	</TD>
	<TD>
		<TABLE id="tblWFG" datasrc="#dsoWFG" selectable="true" onreadystatechange="attachBehavior(this)" hiddenFields="MenuID,MenuToID">
			<THEAD><TR><TD clone=" "></TD></TR></THEAD>
			<TBODY><TR align="left" style="CURSOR:hand"><TD align="left" clone=" " nowrap><SPAN dataFld="*" style="MARGIN-LEFT: 5px" DATAFORMATAS="html"></SPAN></TD><TD onclick="WFG_Rem(this)" style="CURSOR: hand">X</TD></TR></TBODY>
			<TFOOT>
				<TR><TD colspan="10"><HR></TD></TR>
				<TR>
					<TD><SELECT id="selWFG_MenuFrom" runat="server"></SELECT></TD>
					<TD><SELECT id="selWFG_MenuTo" runat="server"></SELECT></TD>
					<TD><SELECT id="selGroups" runat="server" NAME="selGroups"></SELECT></TD>
					<TD><INPUT type="button" value="Add" onclick="WFG_Add()"></TD>
				</TR>
			</TFOOT>
		</TABLE>
	</TD>
</TR></TABLE>
<SPAN id="spnWF">
<ASP:LITERAL ID="ltrWF" Runat="server"></ASP:LITERAL>
</SPAN>
<SPAN id="spnWFG">
<ASP:LITERAL ID="ltrWFG" Runat="server"></ASP:LITERAL>
</SPAN>
<OBJECT id=dsoWF height=1 width=0 classid=clsid:BD96C556-65A3-11D0-983A-00C04FC29E33 table="tblWF" >
	<PARAM NAME="ExecuteOptions" VALUE="2">
	<PARAM NAME="FetchOptions" VALUE="3">
	<PARAM NAME="SortDirection" VALUE="-1">
	<PARAM NAME="InternetTimeout" VALUE="300000">
	</OBJECT>
<OBJECT id="dsoWFG" table="tblWFG" height="0" width="0" classid="clsid:BD96C556-65A3-11D0-983A-00C04FC29E33" >
	<PARAM NAME="ExecuteOptions" VALUE="2">
	<PARAM NAME="FetchOptions" VALUE="3">
	<PARAM NAME="SortDirection" VALUE="-1">
	<PARAM NAME="InternetTimeout" VALUE="300000">
</OBJECT>
</body>
</html>
<SCRIPT language="javascript" src="/include/Common.js"></SCRIPT>
<SCRIPT language="javascript" src="/include/RDS.js"></SCRIPT>
<SCRIPT language="javascript" src="/include/SOAP.js"></SCRIPT>
<SCRIPT language="javascript" src="Common/Admin.js"></SCRIPT>
<SCRIPT language="javascript">
document.onkeydown = doEnterKey;
function page_Load(){
	loadDSO(dsoWF,spnWF.innerHTML);
	dsoWF.table = "";
	loadDSO(dsoWFG,spnWFG.innerHTML);
	dsoWFG.table = "";
}
function WF_Add(){
	if( !WS )return alert("WebService is loading. Try agan!");
	var ret = WS(CO("WF_Add"),selWF_MenuFrom.value,selWF_MenuTo.value);
	if( showSOAPError(ret) )return;
	reloadAll();
}
function WF_Rem(el){
	if( !confirm("Delete?") )return;
	if( !WS )return alert("WebService is loading. Try agan!");
	var ret = WS(CO("WF_Rem"),rsField(el,"MenuID"),rsField(el,"NextMenuID"));
	if( showSOAPError(ret) )return;
	reloadAll();
}
function WFG_Rem(el){
	if( !confirm("Delete?") )return;
	if( !WS )return alert("WebService is loading. Try agan!");
	var ret = WS(CO("WFG_Rem"),rsField(el,"MenuID"),rsField(el,"MenuToID"),rsField(el,"GroupName"));
	if( showSOAPError(ret) )return;
	reloadAll();
}
function WFG_Add(){
	if( !WS )return alert("WebService is loading. Try agan!");
	var ret = WS(CO("WFG_Add"),selWFG_MenuFrom.value,selWFG_MenuTo.value,selGroups.value);
	if( showSOAPError(ret) )return;
	reloadAll();
}
function reloadAll(){
	var co = ws.createCallOptions("WF_Get",undefined,false);
	var ret = WS(co);
	if( showSOAPError(ret) )return;
	loadDSO(dsoWF,ret.value,null,true);
	var co = ws.createCallOptions("WFG_Get",undefined,false);
	var ret = WS(co);
	if( showSOAPError(ret) )return;
	loadDSO(dsoWFG,ret.value,null,true);
}
function attachBehavior(tbl){
	if( tbl.readyState != "complete" )return;
	tbl.addBehavior("/include/HTC/rowover_js.htc");
}
</SCRIPT>
